package com.whpu.admin.mapper;

import com.whpu.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by RiceBall on 2020/10/23 9:47
 */
@Repository
public interface AdminMapper {

    @Select("select * from user where username =#{username} and password=#{password}")
    List<User> findByNameAndPwd(@Param("username")String username, @Param("password")String password);

}
